package com.tledu.production.service.crafts.impl;

import com.tledu.production.mapper.crafts.TechnologyReallyPlanMapper;
import com.tledu.production.model.crafts.TechnologyPlanModel;
import com.tledu.production.model.crafts.TechnologyRequirementModel;
import com.tledu.production.service.crafts.ITechnologyReallyPlanService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@AllArgsConstructor
public class TechnologyReallyPlanServiceImpl implements ITechnologyReallyPlanService {
    private final TechnologyReallyPlanMapper technologyReallyPlanMapper;
    @Override
    public List<TechnologyPlanModel> list() {
        return technologyReallyPlanMapper.list();
    }

    @Override
    public List<TechnologyPlanModel> selectByName(String condition, String conditionName) {
        return technologyReallyPlanMapper.selectByName(condition,conditionName);
    }

    @Override
    public int del(String technologyPlanId) {
        return technologyReallyPlanMapper.del(technologyPlanId);
    }

    @Override
    public int insert(TechnologyPlanModel technologyPlanModel) {
        return technologyReallyPlanMapper.insertRel(technologyPlanModel);
    }

    @Override
    public int update(TechnologyPlanModel technologyPlanModel) {
        return technologyReallyPlanMapper.update(technologyPlanModel);
    }

    @Override
    public TechnologyPlanModel select(String technologyPlanId) {
        return technologyReallyPlanMapper.select(technologyPlanId);
    }
}
